package com.jkoss.biz;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.jkoss.pojo.oa.Department;
import com.jkoss.pojo.oa.EmpJobs;
import com.jkoss.pojo.oa.Empattendance;
import com.jkoss.pojo.oa.Empfiles;
import com.jkoss.pojo.oa.Empqinjia;
import com.jkoss.pojo.oa.Emps;
import com.jkoss.pojo.oa.Ossqq;
import com.jkoss.pojo.oa.Salary;
import com.jkoss.tool.Page;

public interface IEmpsBiz {

	  //   部门
	  Emps login(Emps e);
	  List<Department> listPageDepts(Page<Department> page);
	  String addDept(Department dept);
	  Department findDeptByID(int did);
	  String updtDept(Department dept);
	  String deleteDept(int depID);
	  List<Department> listDepts();
	  
	  
	  ///	岗位 
	  List<EmpJobs> findJobsByDid(int did);
	  String addJob(EmpJobs jb);
	  EmpJobs findJobByID(int jbid);
	  String updtJobs(EmpJobs job);
	  String deleteJobs(int jbid);
	  
	  ///	员工 
	  String addEmp(Emps emp);
	  Emps findEmpByID(int eid);
	  List<Emps> listPageEmps(Page<Emps> page);
	  String updtEmp(Emps emp);
	  String deleteEmps(int eid);
	  List<Emps> listDptEmps(int did);
	  List<Emps> selectEmpswithDept();
	  List<Emps> findAllEmp();
	  
	  //员工附件word、excel和图片
	  String addEmpfiles(Empfiles file);
	  Empfiles findEmpfilesByID(int efid);
	  List<Empfiles> listEmpfilesByEmp(int eid,String fn);
	  String deleteEmpfiles(int fjid);
	  
	  //企业QQ
	  List<Ossqq> listPageOssqqs(Page<Ossqq> page);
	  String addOssqq(Ossqq jb); 
	  Ossqq  findOssqqByID(int qqeid);
	  Ossqq  findOssqqByName(String qqname);
	  String deleteOssqq(int qqeid);
	  String updtOssqq(Ossqq eqq);
	  String changeEqqUser(int  qqeid,int eid); 
	  
	  //工资管理
	  List<Salary> listPageSalaries(Page<Salary> page,int dptID);
	  String addSalary(Salary sal);
	  Salary findSalaryByID(int sid);
	  String deleteSalary(int sid); 
	  String updtSalary(Salary sal);
	  List<Salary> toBeAddSalarys(Integer depID, Emps emp) ;
	  
	  //学生管理
	  Integer findStuIDBysnameandClsName(String sn,String cname);
	  Integer findEmpIDByEname_deptName(String sn,String cname);


	  //添加考勤
	  List saveStuattendance(   String filePath, Emps emp) ;
	  //列出一个员工的考勤
	  List<Empattendance> listEmpattendanceByEmpID_Mth( int empID,String mth); 
	  Empattendance findEmpattendanceByID(int kqid);
	  String updateEmpattendance(Empattendance kq);
	  
	  //请假管理
	  List<Empqinjia> listAYearEmpqinjia(int eid);
	  String saveQinjia(Empqinjia qj ,float numOfDay,float isAfternoon);
	  String deleteEmpqinjia(int sqjid);
	  String spEmpqinjia(int speid,int sqjid, int sqjstate,String spnote);
      List<Empqinjia> listAYearDeptqinjia(int deptID) ;
}
